import logging,yagmail
def log_send():
    logging.basicConfig(filemode='w+',filename='log.txt',level=logging.DEBUG,format='%(funcName)s ->%(asctime)s ->%(message)s')
def send_mail(filepath):
    mail = yagmail.SMTP(user='3406362198@qq.com',password='bcrgotjogidqcjjd',host='smtp.qq.com')
    mail.send(to='3406362198@qq.com',subject='测试报告',contents='测试报告请查看',attachments=filepath)
import yaml
def aa(filepath):
    with open(filepath,'r',encoding='utf-8') as f:
        return yaml.safe_load(f)
